package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class GamerecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public GamerecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGrnoIsNull() {
            addCriterion("grno is null");
            return (Criteria) this;
        }

        public Criteria andGrnoIsNotNull() {
            addCriterion("grno is not null");
            return (Criteria) this;
        }

        public Criteria andGrnoEqualTo(String value) {
            addCriterion("grno =", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotEqualTo(String value) {
            addCriterion("grno <>", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoGreaterThan(String value) {
            addCriterion("grno >", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoGreaterThanOrEqualTo(String value) {
            addCriterion("grno >=", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLessThan(String value) {
            addCriterion("grno <", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLessThanOrEqualTo(String value) {
            addCriterion("grno <=", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoLike(String value) {
            addCriterion("grno like", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotLike(String value) {
            addCriterion("grno not like", value, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoIn(List<String> values) {
            addCriterion("grno in", values, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotIn(List<String> values) {
            addCriterion("grno not in", values, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoBetween(String value1, String value2) {
            addCriterion("grno between", value1, value2, "grno");
            return (Criteria) this;
        }

        public Criteria andGrnoNotBetween(String value1, String value2) {
            addCriterion("grno not between", value1, value2, "grno");
            return (Criteria) this;
        }

        public Criteria andGtnoIsNull() {
            addCriterion("gtno is null");
            return (Criteria) this;
        }

        public Criteria andGtnoIsNotNull() {
            addCriterion("gtno is not null");
            return (Criteria) this;
        }

        public Criteria andGtnoEqualTo(String value) {
            addCriterion("gtno =", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotEqualTo(String value) {
            addCriterion("gtno <>", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoGreaterThan(String value) {
            addCriterion("gtno >", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoGreaterThanOrEqualTo(String value) {
            addCriterion("gtno >=", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLessThan(String value) {
            addCriterion("gtno <", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLessThanOrEqualTo(String value) {
            addCriterion("gtno <=", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoLike(String value) {
            addCriterion("gtno like", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotLike(String value) {
            addCriterion("gtno not like", value, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoIn(List<String> values) {
            addCriterion("gtno in", values, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotIn(List<String> values) {
            addCriterion("gtno not in", values, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoBetween(String value1, String value2) {
            addCriterion("gtno between", value1, value2, "gtno");
            return (Criteria) this;
        }

        public Criteria andGtnoNotBetween(String value1, String value2) {
            addCriterion("gtno not between", value1, value2, "gtno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeIsNull() {
            addCriterion("grStartTime is null");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeIsNotNull() {
            addCriterion("grStartTime is not null");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeEqualTo(String value) {
            addCriterion("grStartTime =", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeNotEqualTo(String value) {
            addCriterion("grStartTime <>", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeGreaterThan(String value) {
            addCriterion("grStartTime >", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeGreaterThanOrEqualTo(String value) {
            addCriterion("grStartTime >=", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeLessThan(String value) {
            addCriterion("grStartTime <", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeLessThanOrEqualTo(String value) {
            addCriterion("grStartTime <=", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeLike(String value) {
            addCriterion("grStartTime like", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeNotLike(String value) {
            addCriterion("grStartTime not like", value, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeIn(List<String> values) {
            addCriterion("grStartTime in", values, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeNotIn(List<String> values) {
            addCriterion("grStartTime not in", values, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeBetween(String value1, String value2) {
            addCriterion("grStartTime between", value1, value2, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstarttimeNotBetween(String value1, String value2) {
            addCriterion("grStartTime not between", value1, value2, "grstarttime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeIsNull() {
            addCriterion("grStopTime is null");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeIsNotNull() {
            addCriterion("grStopTime is not null");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeEqualTo(String value) {
            addCriterion("grStopTime =", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeNotEqualTo(String value) {
            addCriterion("grStopTime <>", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeGreaterThan(String value) {
            addCriterion("grStopTime >", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeGreaterThanOrEqualTo(String value) {
            addCriterion("grStopTime >=", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeLessThan(String value) {
            addCriterion("grStopTime <", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeLessThanOrEqualTo(String value) {
            addCriterion("grStopTime <=", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeLike(String value) {
            addCriterion("grStopTime like", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeNotLike(String value) {
            addCriterion("grStopTime not like", value, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeIn(List<String> values) {
            addCriterion("grStopTime in", values, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeNotIn(List<String> values) {
            addCriterion("grStopTime not in", values, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeBetween(String value1, String value2) {
            addCriterion("grStopTime between", value1, value2, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrstoptimeNotBetween(String value1, String value2) {
            addCriterion("grStopTime not between", value1, value2, "grstoptime");
            return (Criteria) this;
        }

        public Criteria andGrdescribeIsNull() {
            addCriterion("grDescribe is null");
            return (Criteria) this;
        }

        public Criteria andGrdescribeIsNotNull() {
            addCriterion("grDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andGrdescribeEqualTo(String value) {
            addCriterion("grDescribe =", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeNotEqualTo(String value) {
            addCriterion("grDescribe <>", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeGreaterThan(String value) {
            addCriterion("grDescribe >", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("grDescribe >=", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeLessThan(String value) {
            addCriterion("grDescribe <", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeLessThanOrEqualTo(String value) {
            addCriterion("grDescribe <=", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeLike(String value) {
            addCriterion("grDescribe like", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeNotLike(String value) {
            addCriterion("grDescribe not like", value, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeIn(List<String> values) {
            addCriterion("grDescribe in", values, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeNotIn(List<String> values) {
            addCriterion("grDescribe not in", values, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeBetween(String value1, String value2) {
            addCriterion("grDescribe between", value1, value2, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrdescribeNotBetween(String value1, String value2) {
            addCriterion("grDescribe not between", value1, value2, "grdescribe");
            return (Criteria) this;
        }

        public Criteria andGrstateIsNull() {
            addCriterion("grState is null");
            return (Criteria) this;
        }

        public Criteria andGrstateIsNotNull() {
            addCriterion("grState is not null");
            return (Criteria) this;
        }

        public Criteria andGrstateEqualTo(Integer value) {
            addCriterion("grState =", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateNotEqualTo(Integer value) {
            addCriterion("grState <>", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateGreaterThan(Integer value) {
            addCriterion("grState >", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("grState >=", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateLessThan(Integer value) {
            addCriterion("grState <", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateLessThanOrEqualTo(Integer value) {
            addCriterion("grState <=", value, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateIn(List<Integer> values) {
            addCriterion("grState in", values, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateNotIn(List<Integer> values) {
            addCriterion("grState not in", values, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateBetween(Integer value1, Integer value2) {
            addCriterion("grState between", value1, value2, "grstate");
            return (Criteria) this;
        }

        public Criteria andGrstateNotBetween(Integer value1, Integer value2) {
            addCriterion("grState not between", value1, value2, "grstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}